measuring 3-axis acceleration